home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_fire_load.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
1KB
|
52 lines
/*
* EOT_Fire_Load.ifx.pre
* Written by Gerald Bonnstetter
*
* Fire Sequence Effect.
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Fire_'
lpath = GETCLIP(base||'Path')
lfile = GETCLIP(base||'File')
seed = GETCLIP(base||'Seed')
step = GETCLIP(base||'StepSize')
IF lpath = "" THEN lpath = "Storage/Fire"
IF seed = "" THEN seed = 9883516
IF step = "" THEN step = 1
Gadget.1 = 'STRING 150 10 260 14 "Fire Options File:"' lfile
Gadget.2 = 'FILEREQ 412 10 20 14 "Fire Options File:" 'lpath ' #?' lfile 'AT=1'
Gadget.3 = 'INTEGER 150 26 110 14 "Seed:"' seed
Gadget.4 = 'INTEGER 150 42 110 14 "Step Size:"' step
Gadget.5 = 'END'
NewComplexRequest '"Fire Sequence"' Gadget 450 70
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'Path' , result.2.path)
CALL SETCLIP(base||'File' , result.2.file)
CALL SETCLIP(base||'Seed' , result.3)
CALL SETCLIP(base||'StepSize' , result.4)
increment = 0
CALL SETCLIP(base||'Increment', increment)
undo on
EXIT